package com.bykj.property.model;

import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableName;
    import com.baomidou.mybatisplus.annotation.IdType;
    import java.sql.Timestamp;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;
/**
* <p>
    * 系统用户
    * </p>
*
* @author liangyiming
* @since 2019-06-20
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("sys_user")
    @ApiModel(value="SysUser对象", description="系统用户")
    public class SysUser implements Serializable {


private static final long serialVersionUID = 1L;
            @TableId(value = "sys_user_id", type = IdType.AUTO)
    private Long sysUserId;
            @ApiModelProperty(value = "账户名称")
    private String username;
            @ApiModelProperty(value = "密码")
    private String password;

            @ApiModelProperty(value = "盐",hidden = true)
    private String salt;
            @ApiModelProperty(value = "手机")
    private String phone;
            @ApiModelProperty(value = "姓名")
    private String name;
    /**
     * 角色id属性
     */
    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private List<SysRole> sysRoles;
    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private String token;
    @ApiModelProperty(hidden = true)
    private Timestamp createTime;
    private Timestamp updateTime;

}
